package com.xbongbong.pro.formexplain.pojo.dto;

import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.domain.entity.PaasFormExplainEntity;
import com.xbongbong.paas.domain.entity.ext.PaasFormDataEntityExt;
import com.xbongbong.paas.field.FieldAttrEntity;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.pro.detailtab.pojo.OneKeyProduceProductPojo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.List;


/**
 * 获取关联新建表单解释的参数dto
 *
 * @author feng.zheng
 * @version v1.0
 * @date 2019/2/20 19:12
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class HandlerExplainInLinkItemDTO extends BaseDTO {

    private static final long serialVersionUID = -8130242780233818300L;

    /**
     * 关联新建表单的业务类型
     */
    @NotNull(message = "{dto.msg.handlerExplainBatchLinkItem.linkBusinessType.NotNull}")
    private Integer linkBusinessType;

    /**
     * 解释
     */
    private List<FieldAttrEntity> explainList;

    /**
     * 关联的表单数据data
     */
    private JSONObject linkFormData;

    /**
     * 关联表单的数据id
     */
    private Long linkDataId;
    /**
     * 实体数据
     */
    private PaasFormDataEntityExt paasFormDataEntityExt;
    /**
     * 按钮attr
     */
    private String attr;
    /**
     * 产品数据
     */
    private List<OneKeyProduceProductPojo> productList;
    /**
     * 解释
     */
    private PaasFormExplainEntity paasFormExplainEntity;
    /**
     * 来自于跳转阶段生成合同
     */
    private Integer fromGenerateBusiness;

    /**
     * 报价单组号
     */
    private String groupNumber;
    /**
     * 发票管理类型
     */
    private Integer invoiceRefType;
    /**
     * 数据联动formId
     */
    private Long formId;
    /**
     * 数据联动联动表单sourceFormId
     */
    private Long sourceFormId;
    /**
     * 业务类型
     */
    private Integer businessType;
    /**
     * 线索转换过来的,带的是线索的Id
     */
    private Long clueId;
    /**
     * 源businesstype 区分智能补货和以销定购的按产品采购
     **/
    private Integer sourceBusinessType;
}
